# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=perl-date-format
_realname=TimeDate
pkgver=2.32
pkgrel=0
pkgdesc="Perl - Date formating subroutines"
url="https://metacpan.org/release/TimeDate"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/$_realname-$pkgver.tar.gz"

builddir="$srcdir/$_realname-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

sha512sums="7c451c3a69b32db1ec8ec21462eef2ac5e3a63f8eb6521260362a396f39c0c0f93efaf6f2903ade82175b391f09b7d6f6121b68fbf9f5dde421a8b5dd65476bf  TimeDate-2.32.tar.gz"
